home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Misc Servers / Zope.exe / PROFILE.DTML < prev    next >
Encoding:
Text File  |  2000-05-04  |  1.8 KB  |  76 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
  2. <html lang="en">
  3. <head>
  4. <title>Profiler Information</title>
  5. <style type="text/css">
  6. <!-- 
  7. .header {
  8. font-weight: bold;
  9. font-size: 10pt;
  10. }
  11.  
  12. .cell {
  13. font-size: 10pt;
  14. }
  15.  
  16. -->
  17. </style>
  18. </head>
  19. <body bgcolor="#FFFFFF" link="#000099" vlink="#555555">
  20. <dtml-var manage_tabs>
  21.  
  22. <h3>Profile Information</h3>
  23. <p>
  24.  
  25. <dtml-let sort="REQUEST.get('sort', 'time')"
  26.           limit="REQUEST.get('limit', 100)" 
  27.           stats="manage_profile_stats(sort, limit)">
  28. <dtml-if stats>
  29. <form action="<dtml-var URL>" method="POST">
  30. <table>
  31. <tr>
  32. <td><strong>Sort</strong>: 
  33.     <select name="sort">
  34.     <dtml-in "('time', 'cumulative', 'calls', 'pcalls',
  35.               'name', 'file', 'module', 'line',
  36.               'nfl', 'stdname')">
  37.     <option value="<dtml-var sequence-item>"<dtml-if 
  38.      "sort==_['sequence-item']"> selected</dtml-if>><dtml-var 
  39.     sequence-item>
  40.     </dtml-in>
  41.     </select>
  42. </td>
  43. <td><strong>Limit</strong>: 
  44.     <select name="limit:int">
  45.     <dtml-in "(100, 200, 300, 400, 500)">
  46.     <option value="<dtml-var sequence-item>"<dtml-if 
  47.      "limit==_['sequence-item']"> selected</dtml-if>><dtml-var 
  48.     sequence-item>
  49.     </dtml-in>
  50.     </select>
  51. </td>
  52. <td>
  53. <input type="submit" name="submit" value="Update">
  54. </td>
  55. </tr>
  56. </table>
  57. </form>
  58. <hr>
  59. <pre>
  60. <dtml-var stats>
  61. </pre>
  62.  
  63. <dtml-else>
  64.   <em>
  65.   Profiling is not currently enabled or there is not yet any profiling 
  66.   data to report. To enable profiling, restart the Zope process with 
  67.   the environment variable PROFILE_PUBLISHER defined. The value of this 
  68.   variable should be the full system path to a file that will be used 
  69.   to dump a profile report when the process restarts or exits.
  70.   </em>
  71. </dtml-if>
  72. </dtml-let>
  73.  
  74. </body>
  75. </html>
  76.